import 'package:flutter/widgets.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ActivetyPanel extends StatelessWidget {
  final List<String> imgList;

  ActivetyPanel({Key key, this.imgList}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.fromLTRB(0, 10.0, 0, 0),
      height: ScreenUtil().setHeight(330.0),
      child: Row(
        children: this.imgList.map((url) {
          return Container(
            width: ScreenUtil().setWidth(750 / 3),
            child: Image.network(url, fit: BoxFit.cover),
          );
        }).toList(),
      ),
    );
  }
}
